std::memset
From Cppreference
| C++ Standard Library |
|---|
| Strings library |
| Narrow null-terminated strings |
| Defined in header <cstring>
| ||
| void* memset( void* dest, int ch, size_t count );
| ||
Fills a memory buffer, pointed to by dest, with a byte value ch. This function is optimized and is faster than filling the same array using for loop.
Contents |
[edit] Parameters
| dest | - | pointer to the memory location to fill |
| ch | - | fill byte |
| count | - | size of the memory location to fill |
[edit] Return value
dest
[edit] Example
| This section is incomplete |
[edit] See also
| copies one buffer to another (function) | |